/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package be.cultuurschuur.Controllers;

import be.cultuurschuur.entity.*;
import be.cultuurschuur.interfaces.*;
import be.cultuurschuur.services.*;
import java.io.*;
import java.util.*;
import javax.enterprise.context.*;
import javax.inject.*;

/**
 *
 * @author Webbie
 */
@Named
@RequestScoped
public class ContinentController implements Serializable
{
    @Inject
    private ContinentInterface continentInterface;
    
    private String continentNaam;

    public String getContinentNaam() {
        return continentNaam;
    }

    public void setContinentNaam(String continentNaam) {
        this.continentNaam = continentNaam;
    }

    public void insertContinent()
    { 
        BLContinent blContinent = new BLContinent();
        blContinent.setContinentNaam(continentNaam);
        blContinent.insertContinent();
    }
    
    public List<Continent> getContinenten()
    {
        BLContinent blContinent = new BLContinent(); 
        return blContinent.getContinenten();
    }
}
